1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Reference | autotext()


Syntax
autotext()

DescriptionGenerates random text from an XML-document. Autotext is a very powerful feature once you learn how to use it. NodeBox has a built-in implementation of the Kant Generator Pro. XML-files for the Kant Generator have a specified structure. Further information can be found at http://diveintopython.org/xml_processing/
Returnsa string containing automatically generated text
Tutorial Strings


Example
fontsize(9)
lineheight(0.8)
txt = autotext("kant.xml")
text(txt, 5, 10, width=110)
  
Download kant.xml